import {request} from "@/sheep/request/indexPet";
const baseURL='https://cutepet.liuliangbenben.com/'
export const getTestArea = (params) => {
    return request({
        url: `/shop/api/data/testArea`,
        method: 'GET',
        params,
    })
}
export const getListByPid = (params) => {
    return request({
        url: `/shop/api/data/testArea/getListByPid`,
        method: 'GET',
        params,
    })
}
export const getJson = (params) => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/map`,
        method: 'GET',
        params,
    })
}

export const income = (params) => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/earnings`,
        method: 'GET',
        params,
    })
}

export const api_order_data = (params) => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/order`,
        method: 'GET',
        params,
    })
}

export const income_rank = (params) => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/ranking`,
        method: 'GET',
        params,
    })
}

export const api_order_list = (params) => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/orderList`,
        method: 'GET',
        params,
    })
}

export const api_device_up = (params) => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/MachineUp`,
        method: 'GET',
        params,
    })
}

export const api_device_status = (params) => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/machineStatus`,
        method: 'GET',
        params,
    })
}



export const reade_amount = () => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/orderAmount`,
        method: 'GET',
    })
}


export const api_map_rank = (params) => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/rightRanking`,
        method: 'GET',
        params,
    })
}

export const record_data = (params) => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/faultList`,
        method: 'GET',
        params,
    })
}

export const map_poi = (params) => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/machineForCity`,
        method: 'GET',
        params,
    })
}


export const map_level = (params) => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/getAreaId`,
        method: 'GET',
        params,
    })
}

export const api_device_details = (id) => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/details/${id}`,
        method: 'GET',
    })
}

export const api_user = () => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/user`,
        method: 'GET',
    })
}

export const api_device_num = () => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/machineNum`,
        method: 'GET',
    })
}


export const api_is_exist = (params) => {
    return request({
        baseURL,
        url: `/shop/admin/statistics/bigScreen/exist`,
        method: 'GET',
        params
    })
}
















